#include <OgreViewport.h>
#include <OgrePrerequisites.h>

using namespace Ogre;

#define DLL_EXPORT __declspec(dllexport)

extern "C" DLL_EXPORT void call_setDimensions(void *ptr, float left, float top, float width, float height)
{
    ((Viewport*)ptr)->setDimensions(left, top, width, height);
}

extern "C" DLL_EXPORT int call_getActualHeight(void *ptr)
{
    return ((Viewport*)ptr)->getActualHeight();
}

extern "C" DLL_EXPORT int call_getActualWidth(void *ptr)
{
    return ((Viewport*)ptr)->getActualWidth();
}

extern "C" DLL_EXPORT void call_setBackgroundColour(Viewport *ptr, ColourValue* color)
{
    ptr->setBackgroundColour(*color);
}
